package com.mall.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;


/**
 *  开启网关的 注册，发现功能
 *
 */
@RefreshScope
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) // 排除和数据源有关的配置
public class HkGatewayApplication {

	public static void main(String[] args) {
		// 启动类
		SpringApplication.run(HkGatewayApplication.class, args);
	}

}
